package com.tristen.gulimall.product.feign;

import com.tristen.common.to.SkuReductionTo;
import com.tristen.common.to.SpuBoundsTo;
import com.tristen.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName CouponFeignService.java
 * @Description TODO
 * @createTime 2022年01月10日 14:36:00
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/saveSpuBoundTo")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
